home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / sc_binary.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  1.6 KB  |  59 lines

  1. /* sc_binary.c
  2.    gopher item subclass procedures for binary files */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19. #include "conf.h"
  20. #include "globals.h"
  21. #include "gopher.h"
  22. #include "util.h"
  23. #include "appres.h"
  24. #include "sc_binary.h"
  25. #include "sc_binaryP.h"
  26.  
  27.  
  28.  
  29. /* GIBinary_init
  30.    initialize binary class - prefix string */
  31.  
  32. void
  33. GIBinary_init()
  34. {
  35.     GU_makePrefix(prefixBinary,  appResources->prefixBinary);
  36.     GU_registerNewType(A_BINARY, &binarySubclass);
  37.  
  38.     return;
  39. }
  40.  
  41.  
  42. /* GIBinary_access
  43.    check the accessability of a binary file type */
  44.  
  45. BOOLEAN
  46. GIBinary_access(gi)
  47. gopherItemP    gi;
  48. {
  49.     BOOLEAN    result;
  50.  
  51.     if (appResources->allowCopy) {
  52.         result = TRUE;
  53.     }else {
  54.         result = FALSE;
  55.     }
  56.  
  57.     return result;
  58. }
  59.